package org.coopac.service.impl;
import java.util.List;
import org.coopac.dao.ILetraCreditoDAO;
import org.coopac.model.CoopacLetraCredito;
import org.coopac.service.ILetraCreditoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
	@Transactional
	@Service("letracreditoService")
	public class LetraCreditoService implements ILetraCreditoService {
	@Autowired
	private ILetraCreditoDAO letracreditoDAO;

	@Override
	public List<CoopacLetraCredito> listar() {
	return letracreditoDAO.listar();
	}

	@Override
	public void save(CoopacLetraCredito letracredito) {
		letracreditoDAO.save(letracredito);
	}

	@Override
	public void update(CoopacLetraCredito letracredito) {
		letracreditoDAO.update(letracredito);
	}

	@Override
	public void delete(CoopacLetraCredito letracredito) {
		letracreditoDAO.delete(letracredito);
	}

	@Override
	public CoopacLetraCredito getById(int id){
		return letracreditoDAO.getById(id);
	}

}
